<div id="commentform">
	<h2>发表评论</h2>
	<% form_for(@blog_comment) do |f| %>
	<%= f.hidden_field :blog_id, :value => @blog.id %>
	<table>
		<% if logged_in? %>
			<%= f.hidden_field :user_id, :value => current_user.id %>
		<% else %>
		<tr>
			<td width="70px">大名</td>
			<td align="left">
				<%= f.text_field :name, :size => 40 %>
			</td>
		</tr>
		<tr>
			<td width="70px">网址</td>
			<td align="left">
				<%= f.text_field :site, :size => 40, :value => "http://" %>
			</td>
		</tr>
		<% end %>
		<tr>
			<td width="70px" style="vertical-align: top;">评论</td>
			<td align="left">
				<%= f.text_area :content, :size => "35x10" %>
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<%= f.submit "发表评论" %>
			</td>
		</tr>
	</table>
	<% end %>
</div>